﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Remind.Model;

namespace Remind.IDAL
{
    /// <summary>
    /// 用户信息数据访问层的抽象接口
    /// </summary>
    public interface IUser
    {
        //查询记录行数
        int GetUserCount();
        /// <summary>
        /// 查询所有用户信息
        /// </summary>
        /// <returns></returns>
        IList<UserInfo> GetUsers();
        /// <summary>
        /// 根据用户返回信息
        /// </summary>
        /// <param name="uname"></param>
        /// <returns></returns>
        UserInfo GetUserByUName(string uname);

        /// <summary>
        /// 编辑用户信息
        /// </summary>
        /// <param name="info"></param>
        int EditUser(UserInfo userInfo,Idu idu);
    }
}
